{% extends "base.html" %}
  {% block content %}
    {% from "forms/macros.html" import render_field %}
    <h2> Informe de Línea Base </h2>
    </br>
    <form method="POST" action="." class="form">
      <div style="overflow:auto; width: 770px; height: 550px;" > 
    	Items:
      	<table> 
        	<tr>
          		<th><center>Id</center></th>
          		<th><center>Nombre</center></td>
          		<th><center>Costo</center></td>
          		<th><center>Estado</center></td>
          		<th><center>Version</center></td>
        	</tr>  
      		{% for item in items %}     
        	<tr>
          		<td><center>{{ item.id }}</center></td>             
          		<td><center>{{ item.nombre }}</center></td>
          		<td><center>{{ item.costo }}</center></td>
          		<td><center>{{ item.estado }}</center></td>
          		<td><center>{{ item.version }}</center></td>
        	</tr> 
      		{% endfor %}   
      	</table>
      	Historial de linea base:
      	<table> 
        	<tr>
          		<th><center>Operacion</center></th>
          		<th><center>Usuario</center></td>
          		<th><center>Fecha</center></td>
        	</tr>  
      		{% for historial in historiales %}     
        	<tr>
          		<td><center>{{ historial.operacion }}</center></td>             
          		<td><center>{{ historial.usuario }}</center></td>
          		<td><center>{{ historial.fecha }}</center></td>
        	</tr> 
      		{% endfor %}   
      	</table>
      	<br>
      	<button type="submit" class="button green">
                <a href="{{ url_for('lineas_base.administracion_lb') }}">Aceptar</a>
       	</button>
    </form>
  {% endblock %}